package org.zk.entity;



import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;


    private Integer userId;
    /**
     * 用户名
     */

    private String userName;
    /**
     * 头像
     */

    private String userPhoto;
    /**
     * 手机号
     */

    private String userPhone;
    /**
     * 用户禁用，1禁用，0可用
     */

    private Integer userState;
    /**
     * 用户登陆密码
     */

    private String userPwd;
    /**
     * 0代表不是会员
     */

    private Integer userVip;
    /**
     * 会员到期期限
     */

   /* @DateTimeFormat(pattern = "yyyy-MM-dd")*/
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date userVipdue;
    /**
     * 会员金额
     */

    private Double userScoring;
    /**
     * 最后登录时间
     */
    private  Date userLastlogin;
    /**
     * 0代表普通用户，1代表讲师
     */
    private Integer userSign;
    /**
     * qq互联
     */

    private String userQq;
    /**
     * 微信互联
     */

    private String userWeixin;
    /**
     * 个人邮箱
     */

    private String userEmail;


    public String getUserGender() {
        return userGender;
    }

    public void setUserGender(String userGender) {
        this.userGender = userGender;
    }

    /**
     * 性别,1是男，0是女
     */
    private String userGender;
    /**
     * 会员id
     */
    private Member member;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getUserState() {
        return userState;
    }

    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Integer getUserVip() {
        return userVip;
    }

    public void setUserVip(Integer userVip) {
        this.userVip = userVip;
    }



    public Integer getUserSign() {
        return userSign;
    }

    public void setUserSign(Integer userSign) {
        this.userSign = userSign;
    }

    public String getUserQq() {
        return userQq;
    }

    public void setUserQq(String userQq) {
        this.userQq = userQq;
    }

    public String getUserWeixin() {
        return userWeixin;
    }

    public void setUserWeixin(String userWeixin) {
        this.userWeixin = userWeixin;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }




    public Double getUserScoring() {
        return userScoring;
    }

    public void setUserScoring(Double userScoring) {
        this.userScoring = userScoring;
    }

    public Date getUserLastlogin() {
        return userLastlogin;
    }

    public void setUserLastlogin(Date userLastlogin) {
        this.userLastlogin = userLastlogin;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhoto='" + userPhoto + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userState=" + userState +
                ", userPwd='" + userPwd + '\'' +
                ", userVip=" + userVip +
                ", userVipdue=" + userVipdue +
                ", userScoring=" + userScoring +
                ", userLastlogin=" + userLastlogin +
                ", userSign=" + userSign +
                ", userQq='" + userQq + '\'' +
                ", userWeixin='" + userWeixin + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userGender=" + userGender +
                '}';
    }

    public Date getUserVipdue() {
        return userVipdue;
    }

    public void setUserVipdue(Date userVipdue) {
        this.userVipdue = userVipdue;
    }


}
